package mandel;


public class UtilsCalcul {
	static public double round(double d, int nbDec) {
		return (double)( (long)(d * Math.pow(10,nbDec) + .5) ) / Math.pow(10,nbDec);
	}
	
	static public int round2int(double d) {
		return (int) round(d,0);
	}

}
